<template>
  <div class="demo">
    <h3>{{title}}分类</h3>
    <slot name="center">默认展示内容1</slot>
    <slot name="footer">默认展示内容2</slot>
  </div>
</template>

<script>
export default {
    name:'Category',
    props:['title']
}
</script>

<style>
.demo{
    background-color: skyblue;
    width: 200px;
    height: 300px;
}
h3{
    text-align: center;
    background-color: orange;
}
img{
    width: 100%;
}
</style>